import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import('@/views/Home.vue'),
    children: [
      { path: '', component: () => import('@/views/TaskList.vue') },
      { path: '/taskcreate/GW', component: () => import('@/views/taskCreate/TaskCreate_GW.vue'), children: [{ path: '/memberSelectGW', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskcreate/DW', component: () => import('@/views/taskCreate/TaskCreate_DW.vue'), children: [{ path: '/memberSelectDW', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskcreate/XD', component: () => import('@/views/taskCreate/TaskCreate_XD.vue'), children: [{ path: '/memberSelectXD', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskcreate/LJ', component: () => import('@/views/taskCreate/TaskCreate_LJ.vue'), children: [{ path: '/memberSelectLJ', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskcreate/SJ', component: () => import('@/views/taskCreate/TaskCreate_SJ.vue'), children: [{ path: '/memberSelectSJ', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskcreate/QT', component: () => import('@/views/taskCreate/TaskCreate_QT.vue'), children: [{ path: '/memberSelectQT', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskcreate/DC', component: () => import('@/views/taskCreate/TaskCreate_DC.vue'), children: [{ path: '/memberSelectDC', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskcreate/JW', component: () => import('@/views/taskCreate/TaskCreate_JW.vue'), children: [{ path: '/memberSelectJW', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskupdate/LJ', component: () => import('@/views/taskUpdate/TaskUpdate_LJ.vue'), children: [{ path: '/memberSelectLJU', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskupdate/SJ', component: () => import('@/views/taskUpdate/TaskUpdate_SJ.vue'), children: [{ path: '/memberSelectSJU', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskupdate/GW', component: () => import('@/views/taskUpdate/TaskUpdate_GW.vue'), children: [{ path: '/memberSelectGWU', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskupdate/DW', component: () => import('@/views/taskUpdate/TaskUpdate_DW.vue'), children: [{ path: '/memberSelectDWU', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskupdate/XD', component: () => import('@/views/taskUpdate/TaskUpdate_XD.vue'), children: [{ path: '/memberSelectXDU', component: () => import('@/views/MemberSelect.vue') }] },
      { path: '/taskInfo_GW', component: () => import('@/views/taskInfo/TaskInfo_GW.vue') },
      { path: '/taskInfo_LJ', component: () => import('@/views/taskInfo/TaskInfo_LJ.vue') },
      { path: '/taskInfo_DW', component: () => import('@/views/taskInfo/TaskInfo_DW.vue') },
      { path: '/taskInfo_SJ', component: () => import('@/views/taskInfo/TaskInfo_SJ.vue') },
      { path: '/taskInfo_DC', component: () => import('@/views/taskInfo/TaskInfo_DC.vue') },
      { path: '/taskInfo_JW', component: () => import('@/views/taskInfo/TaskInfo_JW.vue') },
      { path: '/taskInfo_XD', component: () => import('@/views/taskInfo/TaskInfo_XD.vue') },
      { path: '/taskInfo_QT', component: () => import('@/views/taskInfo/TaskInfo_QT.vue') }
    ]
  }
]
// const routes = [
//   {
//     path: '/',
//     component: () => import('@/views/ElectronicBounder.vue')
//   }
// ]
// const routes = [
//   {
//     path: '/',
//     component: () => import('@/views/ImageVideo.vue')
//   }
// ]
const router = new VueRouter({
  routes
})

export default router
